<?php
/**
 * Joomla! 1.5 component Movie Uploader
 *
 * @version $Id: controller.php 2011-10-25 15:20:52 svn $
 * @author Poznan University of Technology
 * @package Joomla
 * @subpackage Movie Uploader
 * @license Copyright (c) 2011 - All Rights Reserved
 *
 * 
 *
 * This component file was created using the Joomla Component Creator by Not Web Design
 * http://www.notwebdesign.com/joomla_component_creator/
 *
 */

// no direct access
defined('_JEXEC') or die('Restricted access');

jimport('joomla.application.component.controller');

/**
 * Movie Uploader Component Controller
 */
class MovieuploaderController extends JController {
	function display() {
        // Make sure we have a default view
        if( !JRequest::getVar( 'view' )) {
		    JRequest::setVar('view', 'default' );
        } else {
			switch (JRequest::getVar( 'view' )) {
				case 'default':
					JRequest::setVar('view', 'default' );
					break;
				case 'ranking':
					JRequest::setVar('view', 'ranking' );
					break;
				case 'upload':
					JRequest::setVar('view', 'upload' );
					break;
			}
		}
		parent::display();
	}
}
?>